<template>
<view v-if="showuid" :style="theme" class="page">
	<view class="d-beijing-gao" :style="{backgroundImage: 'url(' + domain +'/static/default/web/img/beijing2.jpg)'}">
	    <u-navbar-tm
			title="我的"
			:bgColor="bgColor"
		>
		 <view slot="left">
		</view>
		</u-navbar-tm>
	</view>
	<view class="d-kuan d-gao-30 d-fugao-30 " :style="[{'background-color': fenggeyanse =='light'? '#f9f9f9':'#000000','border-radius': '20px 20px 0 0'}]">
		<view class="d-kuan d-fugao-50 " style="">
			<view class="d-neikuang-10 d-buhuanhang">
				<!--头像-->
				<!--头像-->
				<view class="d-gaokuang-40 d-kuanggao-70 d-yuanjiao-40 d-zuo-10" @click="D_post_uptouxiang">
					<image v-if="member" :src="yonghuXinxi.avatar" mode="aspectFill" class="d-img-70 d-yuanjiao-50 d-beijing-hui"></image>
					<image v-else src="/static/assets/images/avatar.png" mode="aspectFill" class="d-img-70 d-yuanjiao-50 d-beijing-hui"></image>
					<!--image src="/static/assets/images/avatar.png" mode="aspectFill" class="d-img-40 d-yuanjiao-50 d-beijing-hui"></image-->
				</view>
	
				<view class="d-kuan d-zuo-10">
					<view class="d-wenzi-14 d-jiacu">{{yonghuXinxi.name}}</view>
					<view class="d-wenzi-14 d-wenzi-yanse-bai-0 ">ID：{{yonghuXinxi.uid}}</view>
				</view>
				<view class="d-kuan-80 d-neirong-you d-you-10" @click="shezhi()">
					<u-icon name="setting" size="28px"></u-icon>
				</view>

			</view>
		</view>
		<view class="d-clear"></view>
	</view>

	<!--关注-->
	<view class="d-kuan">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10">
				<view class="d-neikuang-10">
					<view class="d-kuan-25 d-zuo d-neirong-juzhong">
						<view class="d-jiacu">{{yonghuXinxi.score}}</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">成长值</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong">
						<view class="d-jiacu">{{yonghuXinxi.guanzhu_count}}</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">关注</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong">
						<view class="d-jiacu">{{yonghuXinxi.fensi_count}}</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">粉丝</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong">
						<view class="d-jiacu">{{yonghuXinxi.tiezi_count}}</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">动态</view>
					</view>
					<view class="d-clear"></view>
				</view>
			</view>
		</view>
	</view>
	
	<!--签到-->
	<view class="d-kuan">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10 d-beijing-bai">
				<view class="d-neikuang-10">
					<view class="d-kuan-33 d-zuo d-neirong-juzhong">
						<view>
							<image src="/static/images/img/xunzhang1.png"  class="d-img-50 "></image>
						</view>
						<view class="d-jiacu">
							我的积分
						</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.score}}积分</view>
					</view>
					<view class="d-kuan-33 d-zuo d-neirong-juzhong">
						<view>
							<image src="/static/images/img/jinbi.png" class="d-img-50"></image>
						</view>
						<view class="d-jiacu">
							积分商城
						</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">兑换奖品</view>
					</view>
					<view class="d-kuan-33 d-zuo d-neirong-juzhong">
						<view>
							<image src="/static/images/img/qiandao.png" class="d-img-50"></image>
						</view>
						<view class="d-jiacu">
							每日签到
						</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">有惊喜</view>
					</view>
					<view class="d-clear"></view>
				</view>
			</view>
		</view>
	</view>
	<!--社区-->
	<view class="d-kuan">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10 d-beijing-bai">
				<view class="d-neikuang-10">
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/quanzi.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">圈子</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.quanzi_count}}个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/fabu.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">帖子</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.tiezi_count}}条</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/shoucang.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">收藏</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.shoucang_count}}个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/dianzan.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">点赞</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.dianzan_count}}个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10 d-box">
						<image src="/static/images/img/pinglun.png" class="d-img-50"></image>
						<view class="box-you-1">
							 <u-badge :type="type" max="99" :value="tongji.pinglunshu" bgColor="#e3310d"></u-badge>
						</view>
						<view class="d-wenzi-14 ">评论</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.pinglun_count}}个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/duanxin.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">短信</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{tongji.tongzhishu}}个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10" @click="chongzhi">
						<image src="/static/images/img/qianbao.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">钱包</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">{{yonghuXinxi.money}}</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10">
						<image src="/static/images/img/goumai.png" class="d-img-50"></image>
						<view class="d-wenzi-14 ">已购买</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">0个</view>
					</view>
					<view class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10" @click="lahei()">
						<image :src="domain+'/static/default/quan/img/pingbi.png'" class="d-img-50"></image>
						<view class="d-wenzi-14 ">拉黑</view>
						<view class="d-wenzi-14 d-wenzi-yanse-hui">管理</view>
					</view>
					<view class="d-clear"></view>

				</view>
			</view>
		</view>
	</view>
	<!--圈贴类型-->
	<view class="d-kuan">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10 d-beijing-bai">
				<view class="d-neikuang-10">
					
					<block v-for="(item, index) in quantietu" :key="index">
						<view v-if="item.kai==1" class="d-kuan-25 d-zuo d-neirong-juzhong d-shangxia-10" @click="quantieurl(item.appurl)">
							
							<image v-if="item.thumb" :src="item.thumb" :class="'d-img-'+item.daxiao"></image>
							<image v-else :src="domain+'/static/default/web/img/quantietu'+item.id+'.png'" :class="'d-img-'+item.daxiao"></image>
							<view class="d-wenzi-14 ">{{item.title}}</view>
						</view>
					</block>
					<view class="d-clear"></view>
	
				</view>
			</view>
		</view>
	</view>
	<!--反馈-->
	<view class="d-kuan" v-if="wwwxinxi.config && wwwxinxi.config.fankuizongkaiguan ==1">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10 d-beijing-bai">
				<view class="d-neikuang-10">
					<view v-if="wwwxinxi.config && wwwxinxi.config.bangzhukaiguan ==1" class="d-kuan d-buhuanhang" @click="bangzhu()">
						<view>
							<image src="/static/images/img/bangzhu.png" class="d-img-45"></image>
						</view>
						<view class="d-hanggao-40 d-zuo-10">
							<text>使用帮助</text>
							<text class="d-zuo-10 d-wenzi-12 d-wenzi-yanse-hui">账号，发帖，充值</text>
						</view>
					</view>
					<view v-if="wwwxinxi.config && wwwxinxi.config.fankuikaiguan ==1" class="d-kuan d-buhuanhang" @click="fankui()">
						<view>
							<image src="/static/images/img/fankui.png" class="d-img-45"></image>
						</view>
						<view class="d-hanggao-40 d-zuo-10">
							<text>反馈中心</text>
							<text class="d-zuo-10 d-wenzi-12 d-wenzi-yanse-hui">服务，充值</text>
						</view>
					</view>
					<view v-if="wwwxinxi.config && wwwxinxi.config.jianyikaiguan ==1" class="d-kuan d-buhuanhang" @click="jianyi()">
						<view>
							<image src="/static/images/img/jianyi.png" class="d-img-45"></image>
						</view>
						<view class="d-hanggao-40 d-zuo-10">
							<text>建议中心</text>
							<text class="d-zuo-10 d-wenzi-12 d-wenzi-yanse-hui">操作，体验</text>
						</view>
					</view>
					<view v-if="wwwxinxi.config && wwwxinxi.config.jubaokaiguan ==1" class="d-kuan d-buhuanhang" @click="jubao()">
						<view>
							<image src="/static/images/img/jubao.png" class="d-img-45"></image>
						</view>
						<view class="d-hanggao-40 d-zuo-10">
							<text>举报记录</text>
							<text class="d-zuo-10 d-wenzi-12 d-wenzi-yanse-hui">不良信息</text>
						</view>
					</view>
					
					<view class="d-clear"></view>
				</view>
			</view>
		</view>
	</view>
	<!--微信客服-->
	<view class="d-kuan" v-if="weixinkefu.pages && weixinkefu.pages.zongkg ==1">
		<view class="d-waikuang-10 d-wenzi-hei">
			<view class="d-kuan d-yuanjiao-10 d-beijing-bai">
				<view class="d-neikuang-10">
					<view class="d-kuan d-buhuanhang" @click="kefu()">
						<view class="d-zuo-5">
							<image :src="weixinkefu.kefutu" class="d-img-40"></image>
						</view>
						<view class="d-hanggao-40 d-zuo-10">
							<text>在线客服</text>
							<text class="d-zuo-10 d-wenzi-12 d-wenzi-yanse-hui">有疑问，需咨询</text>
						</view>
					</view>
					<view class="d-clear"></view>
				</view>
			</view>
		</view>
	</view>
	
	<!--退出-->
	<view class="d-kuan">

		<view class="d-waikuang-10 d-xia-10">
			<!--u-popup :show="show" @close="close" @open="open" :round="10">
				<view class="d-waikuang-10 d-xia-10">
					<text>出淤泥而不染，濯清涟而不妖</text>
				</view>
				<view class="d-waikuang-10 d-xia-10">
					
					<u-button type="primary" open-type="getUserInfo" text="确定绑定账号" @click="xcxWxBangding"></u-button>
				</view>
			</u-popup-->
			<view class="d-xia-10">
				<u-button iconColor="#000000" type="info" :plain="true" @click="bangdingYicun" class="d-xia-10"
				:customStyle="{'background-color': fenggeyanse =='light'? '#ffffff':'#0d0d0d','border-color': fenggeyanse =='light'? '#ffffff':'#0d0d0d'}"
				>小程序账号管理</u-button>
			</view>
			<view class="d-xia-10">
				<u-button type="info" :plain="true" @click="exitlogin" text="退出账号"
				:customStyle="{'background-color': fenggeyanse =='light'? '#ffffff':'#0d0d0d','border-color': fenggeyanse =='light'? '#ffffff':'#0d0d0d'}"
				></u-button>
			</view>
		</view>
		
	</view>
	<!-- 版权信息template模板 -->
	<view class="copyright" >
		<block data-type="template" data-is="tempCopyright" data-attr="webSiteName:webSiteName,domain:domain">
			<view> {{webSiteName}} </view>
			<view> {{banbenhao}} </view>
		</block>
	</view>
	
</view>
<view v-else>
	<view class="d-kuan d-neikuang-10">
		
		<view class="u-content">
			<view class="u-content__circle">
				<u-icon
					name="checkbox-mark"
					color="#fff"
					size="30"
				></u-icon>
			</view>
			<text class="u-content__normal">跳转登录</text>
		</view>
	</view>
</view>
</template>

<script>

var Api = require("../../utils/api.js");
var util = require("../../utils/util.js");

var wxApi = require("../../utils/wxApi.js");
var wxRequest = require("../../utils/wxRequest.js");
import config from "../../utils/config";
var pageCount = config.getPageCount;
var webSiteName = config.getWebsiteName;
var domain = config.getDomain;
var banbenhao = config.getDuixinbanbenhao;
const app = getApp();
/*#ifdef APP-PLUS || H5*/
	var code = uni.getStorageSync('userInfo');
/*#endif*/
/*#ifdef MP-WEIXIN*/
    var code = uni.getStorageSync('userInfo');
/*#endif*/

export default {
  data() {
    return {
      isArticlesList: true,
      listStyle: config.getListStyle,
      shareTitle: config.getWebsiteName,
      pageTitle: '我的',
      articlesList: [],
	  yonghuXinxi: [],
      postype: "post",
      webSiteName: webSiteName,
	  banbenhao: banbenhao,
      domain: domain,
	  member: [],
	  code:code,
	  show: false,
	  showuid: false,
	  uid:'',
	  tongji:{},
	  type:"success",
	  bgColor: '',
	  wwwxinxi:[],
	  weixinkefu:[],
	  quantietu:[],
	  fenggeyanse:'',
	  duankou:''
    };
  },

  components: {},
  props: {},
  onPageScroll: function (e) {
  	  var duixin = this;
  	  var yanse = e.scrollTop;
  	  if(yanse == 0) {
  	  	duixin.bgColor = 'rgba(0, 0, 0, 0)';
  	  } else if(yanse > 150){
		  if(this.fenggeyanse =='light'){
			  duixin.bgColor = 'rgba(255 255 255)';
		  } else {
			  duixin.bgColor = 'rgba(0, 0, 0, 1)';
		  }
  	  	
  	  }
  	  //console.log("yanse",duixin.bgColor);
  },

  onShow: function () {
	  var duixin = this;
	  // 暗黑模式
	  var initialThemes = uni.getStorageSync('theme');
	  if(!initialThemes){
	  	duixin.fenggeyanse = 'light';
	  	uni.setStorageSync('theme', 'light');
	  } else {
	  	duixin.fenggeyanse = initialThemes;
	  }

	uni.setNavigationBarColor({
		backgroundColor: this.fenggeyanse =='light'? '#ffffff':'#151515',
		frontColor: this.fenggeyanse =='light'? '#000000':'#ffffff',
	})
	
	//判断用户是否登录
	var userInfo = uni.getStorageSync('userInfo');
	
	if (userInfo) {
	  this.getTongjis(this.uid);
	}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
	  var self = this; 
	var duixin = this; 
	uni.reLaunch();
	self.getWwwXinxiData();
	self.getWeixinkefuData();
	duixin.duankoudata();
	//判断用户是否登录
	var userInfo = uni.getStorageSync('userInfo');
	
	if (userInfo) {
		this.showuid = true;
		var member = uni.getStorageSync('member');
		var memberuid = uni.getStorageSync('memberuid');
		self.uid = memberuid;
		//console.log("member1",member);
		//console.log("userInfo1",userInfo);
		// 保留二次开发
		self.getYonghuXinxi(memberuid);
		self.getTongjis(memberuid);
	} else {
		//否则跳转到登录页面
		uni.reLaunch({ url: '/pages/login/login'}) // 跳转到首页
	}
	self.getQuantietuData();
	
    var postype = 'post';

    if (options.postype) {
      postype = options.postype;
    }
	
    this.setData({
      postype: postype
    });
  },

  onReady: function () {
    uni.setNavigationBarTitle({
      title: this.pageTitle
    });
  },
  methods: {
	duankoudata(){
		var duixin = this;
		let ua = uni.getSystemInfoSync().platform;
		console.log('duankou',ua);
		if(/(iPhone|iPad|iPod|ios)/i.test(ua)){
		  // 苹果
			duixin.duankou = false;
		} else if(/android/i.test(ua)){
		  // 安卓
			duixin.duankou = true;
		} else {
		  // 其他
			duixin.duankou = true;
		}
	},
	bangdingYicun(){
		uni.navigateTo({
		  url: '/pages/wode/xiaochengxuguanli',
		});
		//console.log('open');
	},
	open() {
	// console.log('open');
	},
	close() {
	this.show = false
	// console.log('close');
	},
	//会员信息
	getYonghuXinxi(uid) {
		var self = this; 
		self.setData({
		  yonghuXinxi: []
		});
		
		var getYonghuXinxiRequest = wxRequest.getRequest(Api.getYonghuXinxi(uid));
		getYonghuXinxiRequest.then(response => {
			if (response.data.code == 1) {
			  self.yonghuXinxi = response.data.data
			} else {
			  self.setData({
				displaySwiper: "none"
			  });
			}
		});
	},

    formSubmit: function (e) {
      var url = '../list/list';
      var key = '';

      if (e.currentTarget.id == "search-input") {
        key = e.detail.value;
      } else {
        key = e.detail.value.input;
      }

      if (key != '') {
        url = url + '?search=' + key;
        uni.navigateTo({
          url: url
        });
      } else {
        uni.showModal({
          title: '提示',
          content: '请输入内容',
          showCancel: false
        });
      }
    },
    // 跳转至查看文章详情
    redictDetail: function (e) {
      Adapter.redictDetail(e, "post");
    },
	exitlogin() {
		uni.removeStorageSync('userInfo');
		uni.removeStorageSync('memberuid');
		uni.removeStorageSync('keycode');
		uni.removeStorageSync('member');
		uni.reLaunch({ url: '/pages/login/login'})
	},
	xcxWxBangding() { 
		let data = {
		        oid: member.openids.id,
				//data: this.yonghuming
				
		        data:JSON.stringify({
					username: 'admin',
					password: '520520sjgx',
				})
		    };
		uni.request({
	    url: Api.getWeixinBangding(), // 替换为您要提交POST请求的URL
		method: 'POST',
		header: {
		    'Content-Type': 'application/x-www-form-urlencoded',
		},
		data: data,
			success: function (res) {
			console.log("oid",member.openids.id) // 打印服务器返回的数据
				uni.showModal({
					showCancel: false,
					content: res.data.msg
				})
			},
			fail: function (err) {
			console.error(err) // 打印错误信息
				uni.showModal({
					showCancel: false,
					content: res.data.msg
				})
			}
		})
	},
	//上传头像
	D_post_uptouxiang() {
		var self = this; 
		var uid = self.yonghuXinxi.uid;
		var code = self.code;
		console.log("上code",code);
		uni.chooseMedia({
		    count: 1,
		    mediaType: ['image'],
		    sourceType: ['album', 'camera'],
		    maxDuration: 30,
		    camera: 'back', //yonghuXinxi.uid,yonghuXinxi.auth
		    success: function (res) {
				//console.log("图片",res.tempFiles[0].tempFilePath) // 打印错误信息
				uni.uploadFile({
				  url: Api.postTouxiang(uid,code), //仅为示例，非真实的接口地址
				  filePath: res.tempFiles[0].tempFilePath,
				  name: 'file',
				  formData: {
					is_ajax:1
				  },
				header: {
					'Content-Type': 'application/x-www-form-urlencoded',
				},
				  success (res){
					//const data = res.data
					//do something
					uni.showToast({
						title: "上传成功",
						icon: 'success',
					});
				  }
				})
		    }
		})
	},
	shezhi() {
		uni.navigateTo({
		    url: '/pages/shezhi/shezhi',
		});
	},
	//获取消息统计
	getTongjis(uid) {
	  	var self = this;
	  	//console.log('xx'); 
	  	var getXiaoxitongjiRequest = wxRequest.getRequest(Api.getXiaoxitongji(uid));
	  	getXiaoxitongjiRequest.then(response => {
	  		if (response.data.code == 1) {
	  		  //console.log(response.data.data); 
	  		  self.tongji = response.data.data
			  self.tongzhis(response.data.data);
	  		} else {
	  		  self.setData({
	  			displaySwiper: "none"
	  		  });
	  		}
	  	});
	},
	// 通知
	tongzhis(e){
		var tongjishu = e;
		console.log('通知',e.zongshu);
		if(tongjishu.zongshu >0){
			setTimeout(() => {
				uni.setTabBarBadge({ // 显示红点
					index: 3, // tabbar下标
					text: tongjishu.zongshu.toString() // 数字
				})
			 });
		} else {
			setTimeout(() => {
				uni.removeTabBarBadge({ // 隐藏红点
					index: 3, // tabbar下标
				})
			 });
		}
	},
	//帮助
	bangzhu(){
		uni.navigateTo({
		  url: '/pages/bangzhu/bangzhu',
		});
	},
	//反馈
	fankui(){
		uni.navigateTo({
		  url: '/pages/fankui/fankui',
		});
	},
	//建议
	jianyi(){
		uni.navigateTo({
		  url: '/pages/jianyi/jianyi',
		});
	},
	//举报
	jubao(){
		uni.navigateTo({
		  url: '/pages/jubao/jubao',
		});
	},
	getWwwXinxiData(){
		
		var duixin = this;
		//console.log('xx'); 
		var getWwwXinxiRequest = wxRequest.getRequest(Api.getWwwXinxi());
		getWwwXinxiRequest.then(response => {
			if (response.data.code == 1) {
			  //console.log(response.data.data); 
			  duixin.wwwxinxi = response.data.data
			  
			} else {
			  duixin.setData({
				displaySwiper: "none"
			  });
			}
		});
	},
	kefu(){
		uni.navigateTo({
		  url: '/pages/kefu/kefu',
		});
	},
	//微信客服接口
	getWeixinkefuData(){
		var duixin = this;
		//console.log('xx'); 
		var getWeixinkefuRequest = wxRequest.getRequest(Api.getWeixinkefu());
		getWeixinkefuRequest.then(response => {
			if (response.data.code == 1) {
			  //console.log(response.data.data); 
			  duixin.weixinkefu = response.data.data
			} else {
			  duixin.setData({
				displaySwiper: "none"
			  });
			}
		});
	},
	//圈贴图标
	getQuantietuData(){
		
		var duixin = this;
		//console.log('xx'); 
		var getQuantietuApiRequest = wxRequest.getRequest(Api.getQuantietuApi());
		getQuantietuApiRequest.then(response => {
			if (response.data.code == 1) {
			  //console.log(response.data.data); 
			  duixin.quantietu = response.data.data
			} else {
			  duixin.setData({
				displaySwiper: "none"
			  });
			}
		});
	},
	//圈帖链接
	quantieurl(url){
		uni.navigateTo({
		  url: url,
		});
	},
	//充值
	chongzhi(){
		var duixin = this;
		if(duixin.duankou){
			uni.navigateTo({
			  url: '/pages/chongzhi/chongzhi',
			});
		} else {
			uni.showToast({
				icon: 'none',
				title: 'IOS暂时不支持充值',
				duration: 1000
			});
		}
		
	},
	lahei() {
		uni.navigateTo({
		    url: '/pages/lahei/lahei',
		});
	},
  }
};
</script>
<style lang="scss">
@import "./wo.css";
page {
	background-color: #f3f4f7;
}
</style>